<template>
  <div class="">
    <slot></slot>
    <ul>
    <li v-for="(item,index) in arrTask" :key="index">
      <input type="checkbox" :checked="item.complete">
      <span>{{item.name}}</span>
      <button @click="delTask(index)">删除</button>
    </li>
  </ul>
  </div>
</template>

<script>
import { ref, reactive, toRefs } from "vue";
import { useStore } from "vuex";
import { useRouter, useRoute } from "vue-router";
export default {
    props: {
        arrTask:Array
    },
  setup(props, ctx) {
    const store = useStore();
    const router = useRouter();
    const route = useRoute();
      const data = reactive({});
    
    return { ...toRefs(data) };
  },
};
</script>

<style lang='scss'>
</style>
